package com.whfc.iot.mach.service.impl;

import com.whfc.hdc.dto.AppDeviceParamDTO;
import com.whfc.hdc.service.AppDeviceService;
import com.whfc.iot.mach.service.DeviceService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description:
 * @author: xugcheng
 * @version: 1.0
 * @date: 2021-01-06 15:57
 */
@Service
public class DeviceServiceImpl implements DeviceService {

    @DubboReference(interfaceClass = AppDeviceService.class, version = "1.0.0")
    private AppDeviceService commonDeviceService;

    @Override
    public List<AppDeviceParamDTO> getDeviceParam(Integer deviceId) {
        return commonDeviceService.getDeviceParam(deviceId);
    }

    @Override
    public void setDeviceParamRead(Integer deviceId) {
        commonDeviceService.setDeviceParamRead(deviceId);
    }
}
